package com.yjd.comm.enums;

/**
 * 
 * <b>description</b>：类目 <br>
 * <b>time</b>：2015-09-17下午2:26:30 <br>
 * <b>author</b>：weili
 */
public enum CommoditCategoryEnum {
	jiameng(1, "加盟"),
	yimei(2, "医美"),
	canyin(3, "餐饮"),
	zhubao(4, "黄金珠宝"),
	meizhuang(5, "美妆");

	private Integer value;
	private String description;

	private CommoditCategoryEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static CommoditCategoryEnum get(Integer value) {
		CommoditCategoryEnum[] enums = CommoditCategoryEnum
				.values();
		for (CommoditCategoryEnum enum1 : enums) {
			if (enum1.getValue().equals(value)) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		CommoditCategoryEnum enum1 = CommoditCategoryEnum
				.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}

}
